package com.zhima.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhima.entity.OjResource;
import com.zhima.entity.OjRoleResource;
import com.zhima.mapper.OjRoleResourceMapper;
import com.zhima.service.OjRoleResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zhima
 * @since 2023-08-23
 */
@Service
public class OjRoleResourceServiceImpl extends ServiceImpl<OjRoleResourceMapper, OjRoleResource> implements OjRoleResourceService {
    @Autowired
    private OjRoleResourceMapper ojRoleResourceMapper;

    @Override
    public List<OjResource> queryRolesResource(List<Integer> roleIds) {
        return ojRoleResourceMapper.queryRolesResource(roleIds);
    }
}
